home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CellDialog$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.2 KB  |  29 lines

  1. package com.extensibility.xa;
  2.  
  3. import java.util.EventObject;
  4. import javax.swing.JList;
  5. import javax.swing.event.ListSelectionEvent;
  6. import javax.swing.event.ListSelectionListener;
  7.  
  8. class CellDialog$1 implements ListSelectionListener {
  9.    // $FF: synthetic field
  10.    final CellDialog this$0;
  11.  
  12.    public void valueChanged(ListSelectionEvent var1) {
  13.       if (!var1.getValueIsAdjusting()) {
  14.          JList var2 = (JList)((EventObject)var1).getSource();
  15.          int var3 = var2.getSelectedIndex();
  16.          if (var3 >= 0) {
  17.             String var4 = (String)var2.getModel().getElementAt(var3);
  18.             this.this$0.insertName(var4);
  19.             var2.clearSelection();
  20.             this.this$0.editor.requestFocus();
  21.          }
  22.       }
  23.    }
  24.  
  25.    CellDialog$1(CellDialog var1) {
  26.       this.this$0 = var1;
  27.    }
  28. }
  29.